<div class = "main-view">
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">城市列表</strong></div>
        <form class="am-form-inline left-margin top-margin" role="form">

            <div class = "city-cascading" style = "display: inline-block;" id = "cascad-search"></div>
            <!--<div  class="am-form-group">-->
                <!--<label style="width:auto">城市名称:</label> <input type="text" class="am-form-field" style="height: 32px" ng-model="title" >-->
            <!--</div>-->
            <button id="search-target" data-am-modal="{target: '#loading'}" type="submit" class="am-btn am-btn-primary left-margin" ng-click="search()" data-target="cascad-search">搜索</button>
        </form>
    </div>
    <div id="pagination" class="pagination"></div>

<div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
    <form class="am-form">
        <table class="am-table-striped am-table-hover table-main">
            <thead>
            <tr>
                <th class="table-check"><input type="checkbox" ng-click="allSelected()"></th>
                <th class="table-title">行政区名称</th>
                <th class="table-title">行政级别</th>
                <!--<th class="table-title">内容分类</th>-->
                <th class="table-title">上级行政区</th>
                <!--<th class="table-title">创建日期</th>-->
                <th class="table-title">最后修改日期</th>
                <th class="table-title">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="reg in regionsList" id = "{{reg.objId}}">
                <td class="table-check"><input type="checkbox" class = "item-check"></td>
                <td>{{reg.name}}</td>
                <td>{{reg.type}}</td>
                <td>{{reg.parentId.name}}</td>
                <td>{{reg.dateLastModified | date:'yyyy-MM-dd'}}{{reg.dateLastModified | date:'HH:mm:ss'}}</td>
                <td ng-show="(reg.type=='city')">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            <button class="am-btn am-btn-default am-btn-xs am-text-secondary" ng-click="countyInit(reg)"><span class="am-icon-copy"></span>县区初始化</button>
                        </div>
                    </div>

                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>

</div>